#ifndef QMYCOMBOBOX_H
#define QMYCOMBOBOX_H

#include <QComboBox>
#include "../../lib/shared/qobjecthost.h"

class QComboBoxHost: public QObjectHost
{
    Q_OBJECT
public:
    QComboBoxHost(QWidget* wid);
public slots:
    int currentIndex();
    QString currentText();
    void removeIndex(int index);
    void insertIndex(int index,const QString &text);
    int count();
signals:
    void setCurrentIndex(int index);
};

class QMyComboBox : public QComboBox
{
    Q_OBJECT
public:
    QMyComboBox(QWidget *parent=0);
public slots:
    void    updateProperty(const QString & name);
    void    current(int index);
    void    updatePropertyAttribute();
    void    initProperty();
signals:
    void    zValueChanged();

protected:
    QObjectHost *m_host;
};

#endif // QMYCOMBOBOX_H
